/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dto;

import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author DH
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "productType", propOrder = {
    "id",
    "productName",
    "price",
    "productCategory",
    "productDescription",
    "addDate",
    "imagePath"
})
public class ProductDTO implements Serializable {
    @XmlElement(required = true)
    private int id;
    @XmlElement(required = true)
    private String productName;
    @XmlElement(required = true)
    private String productDescription;
    @XmlElement(required = true)
    private String productCategory;
    @XmlElement(required = true)
    private int price;
    @XmlElement(required = true)
    private String imagePath;
    @XmlElement(required = true)
    private Date addDate;

    public ProductDTO(int id, String productName, String productDescription, String productCategory, int price, String imagePath, Date addDate) {
        this.id = id;
        this.productName = productName;
        this.productDescription = productDescription;
        this.productCategory = productCategory;
        this.price = price;
        this.imagePath = imagePath;
        this.addDate = addDate;
    }
   
    public ProductDTO() {
    }

    public String getImagePath() {
        return imagePath;
    }

    public int getPrice() {
        return price;
    }

    public int getId() {
        return id;
    }

    public String getProductCategory() {
        return productCategory;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public String getProductName() {
        return productName;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setProductCategory(String productCategory) {
        this.productCategory = productCategory;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    


}
